//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类;

public class demo_1523 {
    public demo_1523() {
    }

    public int countOdds(int low, int high) {
        if (low % 2 == 1 && high % 2 == 1) {
            return (high - low + 1) / 2 + 1;
        } else {
            return (low % 2 != 1 || high % 2 != 0) && (low % 2 != 0 || high % 2 != 1) ? (high - low) / 2 : (high - low) / 2 + 1;
        }
    }
}
